package com.cyblogs.spring.demo.controller;

import com.cyblogs.spring.demo.service.UserAService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with spring-famliy-learn
 *
 * @Description:
 * @Author: chenyuan
 * @Date: 2021/2/22
 * @Time: 08:31
 */
@RestController
public class UserController {

	@Autowired
	private UserAService userAService;

	@RequestMapping("/hello")
	public String hello(){
		userAService.sayHello();
		return "Hello World";
	}


}
